<template>
  <el-row :gutter="16" class="pb-8">
    <ul>
      <li v-for="item in showV2" :key="item.title">
        <el-col :span="8">
          <el-card shadow="hover" class="wj-el-card" :body-style="{ padding: '0px' }">
            <img :src="item.image" class="image">
            <div style="padding: 6px;">
              <ul v-if="item.list.length > 0" class="v2-list">
                <li class="v2-item" v-for="i in item.list" :key="i.title">
                  <router-link :to="i.link" :title="i.title">{{i.title}}</router-link>
                </li>
              </ul>
              <p v-else class="v2-item">暂无数据</p>
              <p class="v2-more">
                <router-link :to="item.link">更多>></router-link>
              </p>
            </div>
          </el-card>
        </el-col>
      </li>
    </ul>
  </el-row>
</template>

<script>
  import {showV2} from "@/mock-data/home";

  export default {
    name: "wj-show-v2",
    data() {
      return {
        showV2
      }
    }
  }
</script>

<style scoped>

  .v2-list{
    display: flex;
    justify-content: start;
    align-items: center;
    padding-left: 0;
    padding-top: 10px;
  }

  .v2-item {
    font-size: 14px;
    color: #999;
    position: relative;
    padding-left: 10px;
    margin-right: 20px;
  }

  .v2-item:before {
    content: "•";
    color: #4c6ddb;
    font-size: 18px;
    line-height: 25px;
    position: absolute;
    left: -3px;
    top: -5px;
  }

  .v2-item a{
    display: inline-block;
    font-size: 16px;
  }

  .v2-more {
    font-size: 14px;
    padding: 0 5px;
    text-align: right;
  }

  .v2-more a {
    text-decoration: none;
    color: #008c8c;
  }

</style>